package com.douyin_spider.webmagic.Pipeline;

import org.springframework.stereotype.Component;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Component
public class DouyinPipeline implements Pipeline {
    public List<HashMap<String, String>> list;
    @Override
    public void process(ResultItems resultItems, Task task) {
        System.out.println(resultItems);
        this.list = resultItems.get("list");
    }
}
